interface ResponseType {
  code: number
  ok: boolean
  message: string
}

export interface CatagaryResponseData {
  id: number
  name: string
  category1Id?: number
  category2Id?: number
}

//分类返回数据类型
export interface CatagaryResponseType extends ResponseType {
  data: CatagaryResponseData[]
}

export interface AttrValueType {
  id?: number
  valueName: string
  attrId?: number
}

export interface AttrType {
  id?: number
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: AttrValueType[]
}

export interface AttrResponseType extends ResponseType {
  data: AttrType[]
}
